package com.foreknow.demo3;

import java.util.Scanner;

public class ArrayDemo3 {
    public static void main(String[] args) {
        double[] dou = new double[3];
        Scanner input = new Scanner(System.in);
        for (int i = 0;i<dou.length;i++){
            System.out.println((i+1)+"次成绩");
            dou[i]=input.nextDouble();
        }
        for (int i = 0; i<dou.length;i++){
            System.out.println("第"+(i+1)+"次成绩");
            System.out.println(dou[i]);
        }

    }
}
